package scauCmiScaffolding.compiled;

import org.eclipse.jet.JET2Context;
import org.eclipse.jet.JET2Template;
import org.eclipse.jet.JET2Writer;
import org.eclipse.jet.taglib.RuntimeTagElement;
import org.eclipse.jet.taglib.TagInfo;

public class _jet_serviceImpl implements JET2Template {
    private static final String _jetns_c = "org.eclipse.jet.controlTags"; //$NON-NLS-1$
    private static final String _jetns_java = "org.eclipse.jet.javaTags"; //$NON-NLS-1$

    public _jet_serviceImpl() {
        super();
    }

    private static final String NL = System.getProperty("line.separator"); //$NON-NLS-1$
    
    private static final TagInfo _td_c_get_1_9 = new TagInfo("c:get", //$NON-NLS-1$
            1, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_importsLocation_2_1 = new TagInfo("java:importsLocation", //$NON-NLS-1$
            2, 1,
            new String[] {
                "package", //$NON-NLS-1$
            },
            new String[] {
                "org.example", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_3_8 = new TagInfo("c:get", //$NON-NLS-1$
            3, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_4_8 = new TagInfo("c:get", //$NON-NLS-1$
            4, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_5_8 = new TagInfo("c:get", //$NON-NLS-1$
            5, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_6_8 = new TagInfo("c:get", //$NON-NLS-1$
            6, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_7_8 = new TagInfo("c:get", //$NON-NLS-1$
            7, 8,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "$packageName", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_21_2 = new TagInfo("java:import", //$NON-NLS-1$
            21, 2,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_21_69 = new TagInfo("c:get", //$NON-NLS-1$
            21, 69,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_java_import_22_2 = new TagInfo("java:import", //$NON-NLS-1$
            22, 2,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_java_format_23_1 = new TagInfo("java:format", //$NON-NLS-1$
            23, 1,
            new String[] {
            },
            new String[] {
            } );
    private static final TagInfo _td_c_get_24_14 = new TagInfo("c:get", //$NON-NLS-1$
            24, 14,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_24_87 = new TagInfo("c:get", //$NON-NLS-1$
            24, 87,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($projectName)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_24_153 = new TagInfo("c:get", //$NON-NLS-1$
            24, 153,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_get_28_9 = new TagInfo("c:get", //$NON-NLS-1$
            28, 9,
            new String[] {
                "select", //$NON-NLS-1$
            },
            new String[] {
                "uppercaseFirst($eachTable/@name)", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_31_2 = new TagInfo("c:include", //$NON-NLS-1$
            31, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/saveEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_33_2 = new TagInfo("c:include", //$NON-NLS-1$
            33, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/deleteEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_35_2 = new TagInfo("c:include", //$NON-NLS-1$
            35, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/loadEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_37_2 = new TagInfo("c:include", //$NON-NLS-1$
            37, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/findAllEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_39_2 = new TagInfo("c:include", //$NON-NLS-1$
            39, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/findEntityByPrimaryKey.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_41_2 = new TagInfo("c:include", //$NON-NLS-1$
            41, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/countEntity.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_43_2 = new TagInfo("c:include", //$NON-NLS-1$
            43, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/loadReference.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_45_2 = new TagInfo("c:include", //$NON-NLS-1$
            45, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/equals.jet", //$NON-NLS-1$
            } );
    private static final TagInfo _td_c_include_47_2 = new TagInfo("c:include", //$NON-NLS-1$
            47, 2,
            new String[] {
                "template", //$NON-NLS-1$
            },
            new String[] {
                "templates/content/{$framework}/java/service/implement/checkPropertyEqual.jet", //$NON-NLS-1$
            } );

    public void generate(final JET2Context context, final JET2Writer __out) {
        JET2Writer out = __out;
        out.write("package ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_1_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_1_9); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_1_9.setRuntimeParent(null);
        _jettag_c_get_1_9.setTagInfo(_td_c_get_1_9);
        _jettag_c_get_1_9.doStart(context, out);
        _jettag_c_get_1_9.doEnd();
        out.write(".service;");  //$NON-NLS-1$        
        out.write(NL);         
        RuntimeTagElement _jettag_java_importsLocation_2_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "importsLocation", "java:importsLocation", _td_java_importsLocation_2_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_importsLocation_2_1.setRuntimeParent(null);
        _jettag_java_importsLocation_2_1.setTagInfo(_td_java_importsLocation_2_1);
        _jettag_java_importsLocation_2_1.doStart(context, out);
        _jettag_java_importsLocation_2_1.doEnd();
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_3_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_3_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_3_8.setRuntimeParent(null);
        _jettag_c_get_3_8.setTagInfo(_td_c_get_3_8);
        _jettag_c_get_3_8.doStart(context, out);
        _jettag_c_get_3_8.doEnd();
        out.write(".dao.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_4_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_4_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_4_8.setRuntimeParent(null);
        _jettag_c_get_4_8.setTagInfo(_td_c_get_4_8);
        _jettag_c_get_4_8.doStart(context, out);
        _jettag_c_get_4_8.doEnd();
        out.write(".domain.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_5_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_5_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_5_8.setRuntimeParent(null);
        _jettag_c_get_5_8.setTagInfo(_td_c_get_5_8);
        _jettag_c_get_5_8.doStart(context, out);
        _jettag_c_get_5_8.doEnd();
        out.write(".util.CmiSqlUtil;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_6_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_6_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_6_8.setRuntimeParent(null);
        _jettag_c_get_6_8.setTagInfo(_td_c_get_6_8);
        _jettag_c_get_6_8.doStart(context, out);
        _jettag_c_get_6_8.doEnd();
        out.write(".base.*;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import ");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_7_8 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_7_8); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_7_8.setRuntimeParent(null);
        _jettag_c_get_7_8.setTagInfo(_td_c_get_7_8);
        _jettag_c_get_7_8.doStart(context, out);
        _jettag_c_get_7_8.doEnd();
        out.write(".base.bean.CmiPagination;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import java.io.IOException;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Map;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.HashMap;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Set;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.HashSet;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import com.alibaba.fastjson.JSON;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.alibaba.fastjson.JSONArray;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import com.alibaba.fastjson.JSONObject;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write(NL);         
        out.write("import javax.persistence.Query;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("import java.util.Iterator;");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("@");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_java_import_21_2 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_21_2); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_import_21_2.setRuntimeParent(null);
        _jettag_java_import_21_2.setTagInfo(_td_java_import_21_2);
        _jettag_java_import_21_2.doStart(context, out);
        JET2Writer _jettag_java_import_21_2_saved_out = out;
        while (_jettag_java_import_21_2.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write("org.springframework.stereotype.Service");  //$NON-NLS-1$        
            _jettag_java_import_21_2.handleBodyContent(out);
        }
        out = _jettag_java_import_21_2_saved_out;
        _jettag_java_import_21_2.doEnd();
        out.write("(\"");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_c_get_21_69 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_21_69); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_c_get_21_69.setRuntimeParent(null);
        _jettag_c_get_21_69.setTagInfo(_td_c_get_21_69);
        _jettag_c_get_21_69.doStart(context, out);
        _jettag_c_get_21_69.doEnd();
        out.write("Service\")");  //$NON-NLS-1$        
        out.write(NL);         
        out.write("@");  //$NON-NLS-1$        
        RuntimeTagElement _jettag_java_import_22_2 = context.getTagFactory().createRuntimeTag(_jetns_java, "import", "java:import", _td_java_import_22_2); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_import_22_2.setRuntimeParent(null);
        _jettag_java_import_22_2.setTagInfo(_td_java_import_22_2);
        _jettag_java_import_22_2.doStart(context, out);
        JET2Writer _jettag_java_import_22_2_saved_out = out;
        while (_jettag_java_import_22_2.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write("org.springframework.transaction.annotation.Transactional");  //$NON-NLS-1$        
            _jettag_java_import_22_2.handleBodyContent(out);
        }
        out = _jettag_java_import_22_2_saved_out;
        _jettag_java_import_22_2.doEnd();
        out.write(NL);         
        RuntimeTagElement _jettag_java_format_23_1 = context.getTagFactory().createRuntimeTag(_jetns_java, "format", "java:format", _td_java_format_23_1); //$NON-NLS-1$ //$NON-NLS-2$
        _jettag_java_format_23_1.setRuntimeParent(null);
        _jettag_java_format_23_1.setTagInfo(_td_java_format_23_1);
        _jettag_java_format_23_1.doStart(context, out);
        JET2Writer _jettag_java_format_23_1_saved_out = out;
        while (_jettag_java_format_23_1.okToProcessBody()) {
            out = out.newNestedContentWriter();
            out.write(NL);         
            out.write("public class ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_24_14 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_24_14); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_24_14.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_get_24_14.setTagInfo(_td_c_get_24_14);
            _jettag_c_get_24_14.doStart(context, out);
            _jettag_c_get_24_14.doEnd();
            out.write("ServiceImpl extends Cmi");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_24_87 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_24_87); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_24_87.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_get_24_87.setTagInfo(_td_c_get_24_87);
            _jettag_c_get_24_87.doStart(context, out);
            _jettag_c_get_24_87.doEnd();
            out.write("Service  implements ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_24_153 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_24_153); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_24_153.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_get_24_153.setTagInfo(_td_c_get_24_153);
            _jettag_c_get_24_153.doStart(context, out);
            _jettag_c_get_24_153.doEnd();
            out.write("Service {");  //$NON-NLS-1$        
            out.write(NL);         
            //注入的DAO对象由CmiService提供
            //	<c:include template="templates/content/{$framework}/java/service/implement/variable.jet"/>
            //	
            out.write("\tpublic ");  //$NON-NLS-1$        
            RuntimeTagElement _jettag_c_get_28_9 = context.getTagFactory().createRuntimeTag(_jetns_c, "get", "c:get", _td_c_get_28_9); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_get_28_9.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_get_28_9.setTagInfo(_td_c_get_28_9);
            _jettag_c_get_28_9.doStart(context, out);
            _jettag_c_get_28_9.doEnd();
            out.write("ServiceImpl() {");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t}");  //$NON-NLS-1$        
            out.write(NL);         
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_31_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_31_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_31_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_31_2.setTagInfo(_td_c_include_31_2);
            _jettag_c_include_31_2.doStart(context, out);
            _jettag_c_include_31_2.doEnd();
            out.write("\t\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_33_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_33_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_33_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_33_2.setTagInfo(_td_c_include_33_2);
            _jettag_c_include_33_2.doStart(context, out);
            _jettag_c_include_33_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_35_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_35_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_35_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_35_2.setTagInfo(_td_c_include_35_2);
            _jettag_c_include_35_2.doStart(context, out);
            _jettag_c_include_35_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_37_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_37_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_37_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_37_2.setTagInfo(_td_c_include_37_2);
            _jettag_c_include_37_2.doStart(context, out);
            _jettag_c_include_37_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_39_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_39_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_39_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_39_2.setTagInfo(_td_c_include_39_2);
            _jettag_c_include_39_2.doStart(context, out);
            _jettag_c_include_39_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_41_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_41_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_41_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_41_2.setTagInfo(_td_c_include_41_2);
            _jettag_c_include_41_2.doStart(context, out);
            _jettag_c_include_41_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_43_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_43_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_43_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_43_2.setTagInfo(_td_c_include_43_2);
            _jettag_c_include_43_2.doStart(context, out);
            _jettag_c_include_43_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_45_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_45_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_45_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_45_2.setTagInfo(_td_c_include_45_2);
            _jettag_c_include_45_2.doStart(context, out);
            _jettag_c_include_45_2.doEnd();
            out.write("\t");  //$NON-NLS-1$        
            out.write(NL);         
            RuntimeTagElement _jettag_c_include_47_2 = context.getTagFactory().createRuntimeTag(_jetns_c, "include", "c:include", _td_c_include_47_2); //$NON-NLS-1$ //$NON-NLS-2$
            _jettag_c_include_47_2.setRuntimeParent(_jettag_java_format_23_1);
            _jettag_c_include_47_2.setTagInfo(_td_c_include_47_2);
            _jettag_c_include_47_2.doStart(context, out);
            _jettag_c_include_47_2.doEnd();
            out.write("}");  //$NON-NLS-1$        
            out.write(NL);         
            _jettag_java_format_23_1.handleBodyContent(out);
        }
        out = _jettag_java_format_23_1_saved_out;
        _jettag_java_format_23_1.doEnd();
        out.write(NL);         
    }
}
